package com.cr.mrapp.dao;

import com.cr.mrapp.entity.Staff;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StaffDao {
    int deleteByPrimaryKey(Integer staffId);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Integer staffId);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);

    List<Object> selectByPage(@Param("offset") int i, @Param("limit") int limit, @Param("staffName")String staffName);

    int selectCount();

    List<Object> selectByStoreId(@Param("storeId") int storeId);
}